import request from '@/utils/request'

// 获取微信预支付订单号
export function getWxPrepayId(data) {
  return request({
    url: '/pay/wxJsapiPrePay',
    method: 'post',
    data
  })
}

// 获取微信支付二维码
export function getWeChatPaymentQrCode(data) {
  //console.log(data)
  return request({
    url: '/pay/getWxPcQrCode',
    method: 'post',
    data
  })
}

// 获取支付宝PC支付页面
export function getAlipayPcPayment(orderCode) {
  return request({
    url: '/pay/aliPcPay',
    method: 'post',
    params: orderCode
  })
}
// 获取支付宝手机支付页面
export function getAlipayMobilePayment(orderCode) {
  return request({
    url: '/pay/aliMobilePay',
    method: 'post',
    params: orderCode
  })
}

//二次支付更新订单 适用续费
export function renewalUpdateOrderCode(data) {
	return request({
		url: '/order/renewalUpdateOrderCode',
		method: 'post',
		data
	})
}



